package com.uoko.exception;

/**
 * <p>
 * 自定义异常类型加入异常代码
 * </p>
 *
 * @author xianguo
 * Email xianguo@uoko.com
 * created by 2018/6/6 0006
 */
public class BizException extends RuntimeException{
    private int code;//错误代码

    private Object[] param;//请求参数

    public Object[] getParam() {
        return param;
    }

    public int getCode() {
        return code;
    }
    public BizException() {
        super();
    }
    public BizException(int code){
        super();
    }
    public BizException(int code,Object[] param){
        this.param = param;
    }
    public BizException(String message) {
        super(message);
    }
    public BizException(String message, Throwable cause, int code, Object... param) {
        super(message, cause);
        this.code = code;
        this.param = param;
    }
}
